package com.zhentao.model.pojo.user.pay;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 
 * @TableName recharge_order
 */
@TableName(value ="recharge_order")
@Data
public class RechargeOrder implements Serializable {
    /**
     * 充值订单表id
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    private Long uId;

    /**
     * 订单编号
     */
    private Long orderNo;

    /**
     * 总金额
     */
    private Long total;

    /**
     * 支付编号
     */
    private String payNo;

    /**
     * 创建时间
     */
//    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
//    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    /**
     * 支付时间
     */
//    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
//    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date payTime;

    /**
     * 订单状态0:已支付 1：未支付
     */
    private Integer status;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}